﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Whoarewe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Unnamed_Click(object sender, EventArgs e)
    {
        DateiaftenDataContext db = new DateiaftenDataContext();
        var dates = from d in db.Datenights
                   where d.DatenightId == 1
                   select d;
        var Date = db.Datenights.SingleOrDefault(x => x.DatenightId.Equals(1));
        DateTime date = new DateTime(2008, 7, 12);
        Date.Date = date;
        db.SubmitChanges();
    }
}